package com.ddstation.common.property;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SystemProperties {
    private static String fileName = "/system.properties";

    public static void initialize(String rootpath) throws IOException {
        Properties prop = new Properties();
        InputStream in = new FileInputStream(rootpath + fileName);
        prop.load(in);

        if (prop.containsKey("INVS_URL")) {
            INVS_URL = prop.getProperty("INVS_URL").trim();
        } else {
            INVS_URL = "";
        }
        if (prop.containsKey("IS_INNER_DATA")) {
            IS_INNER_DATA = prop.getProperty("IS_INNER_DATA").trim();
        }
    }

    public static String INVS_URL = null;
    public static String IS_INNER_DATA = null;// 是否内网数据


}
